import Foundation

// MARK: - 登录响应模型
struct LoginResponse: Codable {
    let token: String
    let type: String
    let key: String?
    let id: Int
    let nickname: String
    let phone: String
    let avatar: String
    let isNew: Bool
    let newPeopleCouponList: [String]?
    let wechatPublicUserAgreeStatus: Bool
    
    // 计算属性：获取完整头像URL
    var fullAvatarUrl: String {
        return ImageHelper.shared.getImageUrl(avatar)
    }
}

// MARK: - 基础响应模型
struct BaseResponse: Codable {
    // 用于简单响应，不需要具体数据
}